import request from '@/utils/request'

// 查询政务云列表
export function listCloud(query) {
  return request({
    url: '/system/cloud/list',
    method: 'get',
    params: query
  })
}

// 查询政务云详细
export function getCloud(govId) {
  return request({
    url: '/system/cloud/' + govId,
    method: 'get'
  })
}

// 新增政务云
export function addCloud(data) {
  return request({
    url: '/system/cloud',
    method: 'post',
    data: data
  })
}

// 修改政务云
export function updateCloud(data) {
  return request({
    url: '/system/cloud',
    method: 'put',
    data: data
  })
}

// 删除政务云
export function delCloud(govId) {
  return request({
    url: '/system/cloud/' + govId,
    method: 'delete'
  })
}
